var geoCoordMap = {
    '北京': [119.991248,32.545783],
    '江苏': [119.991248,32.545783]
};

var GZData = [
    [{
        name: ' 南京',
        value: 1000
    }, {
        name: '江苏',
        value: 80
    }, {
        name: '北京',
        value: 170
    }],
];

var convertData = function (data) {
    var res = [];
    for (var i = 0; i < data.length; i++) {
        var dataItem = data[i];
        var fromCoord = geoCoordMap[dataItem[0].name];
        var toCoord = geoCoordMap[dataItem[1].name];
        if (fromCoord && toCoord) {
            res.push({
                fromName: dataItem[0].name,
                toName: dataItem[1].name,
                coords: [fromCoord, toCoord]
            });
        }
    }
    return res;
};
export {
    geoCoordMap,
    GZData,
    convertData,
}